package PrototypePattern.example.Pen;

import PrototypePattern.example.framework.Manager;
import PrototypePattern.example.framework.Product;

public class Main {
    public static void main(String[] args) {
        Manager manager = new Manager();
        UnderlinePen underlinePen = new UnderlinePen('~');
        BoxPen mbox = new BoxPen('*');
        BoxPen sbox = new BoxPen('/');
        manager.register("info",underlinePen);
        manager.register("debug",mbox);
        manager.register("error",sbox);

        Product p1 = manager.create("info");
        p1.use("info");
        Product p2 = manager.create("debug");
        p2.use("debug");
        Product p3 = manager.create("error");
        p3.use("error");

    }
}
